package cn.com.surker.weight.entity;

import cn.com.surker.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 仓位日志
 * </p>
 *
 * @author admin
 * @since 2025-05-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class WeightStorageLog extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 标识
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 公司ID
     */
    private Long orgId;

    /**
     * 公司名称
     */
    private String orgName;

    /**
     * 仓位ID
     */
    private Long storageId;

    /**
     * 仓位名称
     */
    private String storage;

    /**
     * 过磅订单号
     */
    private String orderId;

    /**
     * 操作类型(0:驾驶员开阀,1:驾驶员关阀,2:系统开阀,3:系统关阀,4:驾驶员扫码,)
     */
    private Integer type;
    public WeightStorageLog() {}
    public WeightStorageLog(Long orgId, String orgName, Long storageId, String storage, String orderId, Integer type) {
        this.orgId = orgId;
        this.orgName = orgName;
        this.storageId = storageId;
        this.storage = storage;
        this.orderId = orderId;
        this.type = type;
    }
}
